package com.example.aixiangshou.runninggame;

import android.support.annotation.Nullable;
import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.x_memteor.base_master.bean.ItemBean;

import java.util.List;

/**
 * @author: X_Meteor
 * @description: 类描述
 * @version: V_1.0.0
 * @date: 2018/5/14 14:38
 * @company:
 * @email: lx802315@163.com
 */
public class RecyAdapter extends BaseQuickAdapter<ItemBean, BaseViewHolder> {
    public RecyAdapter(int layoutResId, @Nullable List<ItemBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, final ItemBean item) {
        helper.setText(R.id.tv_item, item.getName() + "");
        helper.setImageResource(R.id.imv_item, item.getIcon());
        helper.addOnClickListener(R.id.imv_item);
        helper.addOnClickListener(R.id.tv_item);
    }
}
